﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using Tycho.Runtime;
using System.Windows.Documents;
using System.Windows.Controls;
using System.Windows.Media;

namespace Tycho.Peyote {
    class SymbolPresenter : GlyphPresenter {
        public SymbolPresenter () : base ("symbol", new TypeSchemaObject<Symbol> ()) { }

        public override UIElement Present (AnyObject obj, Environment environment) {
            var text = new TextBlock (new Run (obj.ToString ()));
            return text;
        }
    }
}
